Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hotkeys menu crash + New/Fixed keybind support #6565

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

Drulikar
Copy link
Contributor

@Drulikar Drulikar commented Jun 26, 2024

About the pull request

This PR fixes a crash when using the search by key feature in the Keybinds window when the panel is filtered, and maps a bunch of keys to byond bindings.

Of note, there are three locations remapping keys:
https://github.com/cmss13-devs/cmss13/blob/master/tgui/packages/tgui/interfaces/KeyBinds.jsx#L14-L26
https://github.com/cmss13-devs/cmss13/blob/master/tgui/packages/common/keys.ts#L20-L39
https://github.com/cmss13-devs/cmss13/blob/master/code/_globalvars/lists/client.dm#L7-L23

Since the first two are as they are on TG, I opted to update the third one which seems to be unique to our codebase

Explain why it's good for the game

Fixes various keybinds (namely keypad stuff), adds a bunch of new keybinds (media keys), and fixes a tgui crash.

Fixes:
image

Testing Photographs and Procedure

Screenshots & Videos

hotkeys

Changelog

🆑 Drathek
fix: Fixed a crash in the Hotkey menu when searching by key when filtered
fix: Fixed/Added support for various keys (e.g. keypad and media keys)
/:cl:

@github-actions github-actions bot added UI deletes nanoui/html Fix Fix one bug, make ten more labels Jun 26, 2024
@harryob harryob added this pull request to the merge queue Jun 27, 2024
Merged via the queue into cmss13-devs:master with commit 6dfc611 Jun 27, 2024
27 checks passed
cm13-github added a commit that referenced this pull request Jun 27, 2024
@Drulikar Drulikar deleted the Fix_Hotkeys_Menu branch June 27, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more UI deletes nanoui/html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants